package 合成复用原则;

/**
 * @ClassNameElectricCar
 * @Description
 * @Author
 * @Date2021/11/16 20:34
 **/

/**
 * 电动车
 */
public class ElectricCar extends Car {
    public ElectricCar(Color color) {
        super(color);
    }

    @Override
    public void move() {

        System.out.println(this.color.getColor() + "的电动车在移动---");
    }
}
